home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>2.5.  Histogram dialog</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
- <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
- <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
- <link rel="up" href="gimp-dialogs-structure.html" title="2.  Image Structure Related Dialogs" />
- <link rel="prev" href="gimp-indexed-palette-dialog.html" title="2.4.  Colormap Dialog" />
- <link rel="next" href="gimp-navigation-dialog.html" title="2.6.  Navigation Dialog" />
- </head>
- <body>
- <div class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center">2.5. 
- <span lang="en" xml:lang="en">Histogram dialog</span>
- </th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="gimp-indexed-palette-dialog.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <th width="60%" align="center">2. 
- <span lang="en" xml:lang="en">Image Structure Related Dialogs</span>
- </th>
- <td width="20%" align="right"> <a accesskey="n" href="gimp-navigation-dialog.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- </table>
- <hr />
- </div>
- <div class="sect2" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h3 class="title"><a id="gimp-histogram-dialog"></a>2.5. 
- <span lang="en" xml:lang="en">Histogram dialog</span>
- </h3>
- </div>
- <div>
- <div class="revhistory">
- <table border="1" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>Revision History</b>
- </th>
- </tr>
- <tr>
- <td align="left">Revision $Revision: 2416 $</td>
- <td align="left">2007-09-30</td>
- <td align="left">j.h</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <a id="id2658915" class="indexterm"></a>
- <a id="id2658929" class="indexterm"></a>
- <div class="figure">
- <a id="id2658940"></a>
- <p class="title">
- <b>Figure 14.17. 
- <span lang="en" xml:lang="en">The Histogram dialog</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/dialogs/dialogs-histogram-basic.png" alt="The Histogram dialog" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- The Histogram dialog shows you information about the statistical
- distribution of color values in the active layer or selection. This
- information is often useful when you are trying to
- <span class="emphasis"><em>color balance</em></span>
- an image. However, the Histogram dialog is purely informational: nothing
- you do with it will cause any change to the image. If you want to perform
- a histogram-based color correction, use the
- <a class="link" href="gimp-tool-levels.html" title="5.6.  Levels">Levels</a> tool.
- </p>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2658993"></a>2.5.1. 
- <span lang="en" xml:lang="en">Dialog call</span>
- </h4>
- </div>
- </div>
- </div>
- <p>
- This is a dockable dialog; see the section on
- <a class="link" href="gimp-concepts-docks.html" title="2.3.  Dialogs and Docking">Dialogs and Docking</a>
- for help on manipulating it. It can be activated in two ways:
- </p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- From the Toolbox menu:
- <span class="guimenu">File</span> ‚Üí <span class="guisubmenu">Dialogs</span> ‚Üí <span class="guimenuitem">Histogram</span>.
- </p>
- </li>
- <li>
- <p>
- From the image menu:
- <span class="guimenu">Dialogs</span> ‚Üí <span class="guimenuitem">Histogram</span>.
- </p>
- </li>
- <li>
- <p>
- From the image menu:
- <span class="guimenu">Colors</span> ‚Üí <span class="guisubmenu">Info</span> ‚Üí <span class="guimenuitem">Histogram</span>.
- </p>
- </li>
- </ul>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2659115"></a>2.5.2. 
- <span lang="en" xml:lang="en">About Histograms</span>
- </h4>
- </div>
- </div>
- </div>
- <p>
- In GIMP, each layer of an image can be decomposed into one or more color
- channels: for an RGB image, into R, G, and B channels; for a grayscale
- image, into a single Value channel. Layers that support transparency
- have an additional channel, the alpha channel. Each channel supports a
- range of intensity levels from 0 to 255 (integer valued). Thus, a black
- pixel is encoded by 0 on all color channels; a white pixel by 255 on all
- color channels. A transparent pixel is encoded by 0 on the alpha
- channel; an opaque pixel by 255.
- </p>
- <p>
- For RGB images, it is convenient to define a Value "pseudochannel". This
- is not a real color channel: it does not reflect any information stored
- directly in the image. Instead, the Value at a pixel is given by the
- equation <code class="code">V = max(R,G,B)</code>.
- Essentially, the Value is what you would get at that pixel if you
- converted the image to Grayscale mode.
- </p>
- <p>
- For more information on channels, please consult the
- <a class="xref" href="gimp-images-in.html#gimp-concepts-image-types" title="1.  Image Types">Section 1, “
- <span lang="en" xml:lang="en">Image Types</span>
- ”</a>.
- </p>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2659170"></a>2.5.3. 
- <span lang="en" xml:lang="en">Using the Histogram dialog</span>
- </h4>
- </div>
- </div>
- </div>
- <p>
- The active layer name is shown at the top of the dialog.
- </p>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Channel</span>
- </dt>
- <dd>
- <div class="figure">
- <a id="id2659199"></a>
- <p class="title">
- <b>Figure 14.18. 
- <span lang="en" xml:lang="en">
- Channel options for an RGB layer with alpha channel.
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/dialogs/dialogs-histogram-menu.png" alt="Channel options for an RGB layer with alpha channel." />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- This allows you to select which channel to use. The possibilities
- depend on the layer type of the active layer. Here are the entries
- you might see, and what they mean:
- </p>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Value</span>
- </dt>
- <dd>
- <p>
- For RGB and Grayscale images, this shows the distribution of
- brightness values across the layer. For a grayscale image,
- these are read directly from the image data. For an RGB
- image, they are taken from the Value pseudochannel.
- </p>
- <p>
- For an indexed image, the "Value" channel actually shows the
- distribution of frequencies for each colormap index: thus,
- it is a "pseudocolor" histogram rather than a true color
- histogram.
- </p>
- </dd>
- <dt>
- <span class="term">Red, Green, Blue</span>
- </dt>
- <dd>
- <p>
- These only appear for layers from RGB images. They show the
- distribution of intensity levels for the Red, Green, or Blue
- channels respectively.
- </p>
- </dd>
- <dt>
- <span class="term">Alpha</span>
- </dt>
- <dd>
- <p>
- This shows the distribution of opacity levels. If the layer
- is completely opaque or completely transparent, the
- histogram will consist of a single bar on the left or right
- edge.
- </p>
- </dd>
- <dt>
- <span class="term">RGB</span>
- </dt>
- <dd>
- <div class="figure">
- <a id="id2659325"></a>
- <p class="title">
- <b>Figure 14.19. 
- <span lang="en" xml:lang="en">
- Combined histograms of R, G, and B channels.
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/dialogs/dialogs-histogram-rgb.png" alt="Combined histograms of R, G, and B channels." />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- This entry, only available for RGB layers, shows the R, G,
- and B histograms superimposed, so that you can see all of
- the color distribution information in a single view.
- </p>
- </dd>
- </dl>
- </div>
- </dd>
- <dt>
- <span class="term">Linear/Logarithmic buttons</span>
- </dt>
- <dd>
- <div class="figure">
- <a id="id2659380"></a>
- <p class="title">
- <b>Figure 14.20. 
- <span lang="en" xml:lang="en">
- The histogram shown at the top, changed to logarithmic mode.
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/dialogs/dialogs-histogram-log.png" alt="The histogram shown at the top, changed to logarithmic mode." />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- These buttons determine whether the histogram will be displayed
- using a linear or logarithmic Y axis. For images taken from
- photographs, the linear mode is most commonly useful. For images
- that contain substantial areas of constant color, though, a linear
- histogram will often be dominated by a single bar, and a
- logarithmic histogram will often be more useful.
- </p>
- </dd>
- <dt>
- <span class="term">Range Setting</span>
- </dt>
- <dd>
- <div class="figure">
- <a id="id2659436"></a>
- <p class="title">
- <b>Figure 14.21. 
- <span lang="en" xml:lang="en">Dialog aspect after range fixing.</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/dialogs/dialogs-histogram-range.png" alt="Dialog aspect after range fixing." />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- You can restrict the analysis, for the statistics shown at the
- bottom of the dialog, to a limited range of values if you wish.
- You can set the range in one of three ways:
- </p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- Click and drag the pointer across the histogram display area,
- from the lowest level to the highest level of the range you
- want.
- </p>
- </li>
- <li>
- <p>
- Click and drag the black or white triangles on the slider
- below the histogram.
- </p>
- </li>
- <li>
- <p>
- Use the spinbutton entries below the slider (left entry:
- bottom of range; right entry: top of range).
- </p>
- </li>
- </ul>
- </div>
- </dd>
- <dt>
- <span class="term">Statistics</span>
- </dt>
- <dd>
- <p>
- At the bottom of the dialog some basic statistics are shown
- describing the distribution of channel values, restricted to the
- selected range:
- </p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- <span class="guilabel">Mean</span> : the mean value of the interval
- in the selected channel.
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Std Dev</span> : Standard deviation. Gives an
- idea about how homogeneous the distribution of values in the
- interval is.
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Median</span> : For example, the value of the
- fiftieth peak in a 100 peaks interval.
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Pixels</span> : The number of pixels in the
- active layer or selection.
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Count</span> : The number of pixels in a peak
- (when you click on the histogram) or in the interval.
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Percentile</span> : The ratio between the
- number of pixels in the interval and the total number of
- pixels in the active layer or selection.
- </p>
- </li>
- </ul>
- </div>
- </dd>
- </dl>
- </div>
- </div>
- </div>
- <div class="navfooter">
- <hr />
- <table width="100%" summary="Navigation footer">
- <tr>
- <td width="40%" align="left"><a accesskey="p" href="gimp-indexed-palette-dialog.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="gimp-dialogs-structure.html">
- <img src="../images/up.png" alt="Up" />
- </a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="gimp-navigation-dialog.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top"><a accesskey="p" href="gimp-indexed-palette-dialog.html">2.4. 
- <span lang="en" xml:lang="en">Colormap Dialog</span>
- </a> </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">
- <img src="../images/home.png" alt="Home" />
- </a>
- </td>
- <td width="40%" align="right" valign="top"> <a accesskey="n" href="gimp-navigation-dialog.html">2.6. 
- <span lang="en" xml:lang="en">Navigation Dialog</span>
- </a></td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-